package com.bwie.auth.exception;

import lombok.Data;

/**
 * 登录异常
 */
@Data
public class LoginException extends RuntimeException {

    /**
     * 异常状态码
     */
    private int code;

    /**
     * 异常信息
     */
    private String message;

    public LoginException(String message) {
        this.message = message;
    }

    public LoginException(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
